﻿using System.Diagnostics;
using System.Xml.Serialization;

namespace SilverCrmSoap.FetchXml
{
    
    [DebuggerStepThrough]
    [XmlType(AnonymousType = true)]
    [XmlRoot(Namespace = "", IsNullable = false)]
    public class Attribute
    {
        [XmlAttribute("name")]
        public string Name { get; set; }

        //[XmlAttribute("build")]
        //public build Build { get; set; }
        
        [XmlIgnore]
        public bool BuildSpecified { get; set; }

        [XmlAttribute("addedby")]
        public string AddedBy { get; set; }

        [XmlAttribute("alias")]
        public string Alias { get; set; }

        [XmlAttribute("aggregate")]
        public Aggregate Aggregate { get; set; }

        [XmlIgnore]
        public bool AggregateSpecified { get; set; }

        [XmlAttribute("groupby")]
        public FetchBool GroupBy { get; set; }

        [XmlIgnore]
        public bool GroupBySpecified { get; set; }

        [XmlAttribute("dategrouping")]
        public DateGrouping DateGrouping { get; set; }

        [XmlIgnore]
        public bool DateGroupingSpecified { get; set; }

        [XmlAttribute("usertimezone")]
        public FetchBool UserTimezone { get; set; }

        [XmlIgnore]
        public bool UserTimezoneSpecified { get; set; }
    }
}